package testcliente;
import java.util.ArrayList;
import java.util.List;



import easyaccept.EasyAcceptFacade;
import facade.MyMoneyFacade;

/**
 * Test Client Example
 * @author Magno Queiroz
 */
public class TestClient {

	  public static void main(String[] args) throws Exception {
	        
	        List<String> files = new ArrayList<String>();
	        
	        //Add the test scripts
	        files.add("testScripts/US1CadastroUsuario.txt");
	        files.add("testScripts/US2LoginDeUsuario.txt");
	        files.add("testScripts/US3_1CadastroDeGastos.txt");
	        files.add("testScripts/US3_2CadastroDeGastos.txt");
	        files.add("testScripts/US4_1CadastroDeEntradas.txt");
	        files.add("testScripts/US4_2CadastroDeEntradas.txt");
	        	        
	        files.add("testScripts/US5_1CadastroDeContas.txt");
	        files.add("testScripts/US5_2CadastroDeContas.txt");
	        
	        files.add("testScripts/USAGerarRelatorios.txt");
	        
//	        files.add("testScripts/USXConsultaDeGastos.txt");	        
//	        files.add("testScripts/USX2ConsultaDeEntradas.txt");	        
//	        files.add("testScripts/USYEdicaoDeGastos.txt");
//
//	        files.add("testScripts/USZLeituraDeBoletos.txt");
	        

	        
	        //Instantiate your application facade
	        MyMoneyFacade theApplicationFacade = new MyMoneyFacade();
	        
	        //Instantiate the EasyAccept facade
	        EasyAcceptFacade eaFacade = new EasyAcceptFacade(theApplicationFacade, files);
	        eaFacade.executeTests();
	        
	        //Use the API
	        System.out.println(eaFacade.getCompleteResults());
	        System.out.println("The total of "+ eaFacade.getTotalNumberOfTests()+ " tests have been executed. "+ eaFacade.getTotalNumberOfNotPassedTests()+" failures occured.");
	        
	        System.out.println("Improve your development process with EasyAccept. Enjoy!");
	  }
}
